/**
 * 图片审核状态枚举
 */
export enum PICTURE_REVIEW_STATUS_ENUM {
  /**
   * 待审核
   */
  REVIEW_WAIT = 0,

  /**
   * 通过
   */
  PASS = 1,

  /**
   * 拒绝
   */
  REJECT = 2,
}

/**
 * 图片审核状态映射文本
 */
export const PICTURE_REVIEW_STATUS_MAP: Record<number, string> = {
  [PICTURE_REVIEW_STATUS_ENUM.REVIEW_WAIT]: '待审核',
  [PICTURE_REVIEW_STATUS_ENUM.PASS]: '通过',
  [PICTURE_REVIEW_STATUS_ENUM.REJECT]: '拒绝',
};

export const PICTURE_REVIEW_STATUS_OPTIONS =Object.keys(PICTURE_REVIEW_STATUS_MAP).map((key) => {
  //使用 Number(key) 将字符串类型的键转为数字，适配 PICTURE_REVIEW_STATUS_MAP 的 number 索引签名。
  const keyNumber = Number(key);
  return {
    label: PICTURE_REVIEW_STATUS_MAP[keyNumber],
    value: keyNumber,
  };
})

export const PICTURE_EDIT_MESSAGE_TYPE_ENUM = {
  INFO: 'INFO',
  ERROR: 'ERROR',
  ENTER_EDIT: 'ENTER_EDIT',
  EXIT_EDIT: 'EXIT_EDIT',
  EDIT_ACTION: 'EDIT_ACTION',
};

export const PICTURE_EDIT_MESSAGE_TYPE_MAP = {
  INFO: '发送通知',
  ERROR: '发送错误',
  ENTER_EDIT: '进入编辑状态',
  EXIT_EDIT: '退出编辑状态',
  EDIT_ACTION: '执行编辑操作',
};

export const PICTURE_EDIT_ACTION_ENUM = {
  ZOOM_IN: 'ZOOM_IN',
  ZOOM_OUT: 'ZOOM_OUT',
  ROTATE_LEFT: 'ROTATE_LEFT',
  ROTATE_RIGHT: 'ROTATE_RIGHT',
};

export const PICTURE_EDIT_ACTION_MAP = {
  ZOOM_IN: '放大操作',
  ZOOM_OUT: '缩小操作',
  ROTATE_LEFT: '左旋操作',
  ROTATE_RIGHT: '右旋操作',
};

